Skip to main content

mobileStoreEnablePurchaseUpdates

Type

command

Summary

Enables the receipt of purchaseStateUpdate messages.

Syntax

mobileStoreEnablePurchaseUpdates

Description

Use the mobileStoreEnablePurchaseUpdates command to enable the receipt of purchaseStateUpdate messages.

The command mobileStoreEnablePurchaseUpdates is used to enable the receipt of purchaseStateUpdate messages from the store.

note

This command is necessary when interacting with Apple AppStore, however, we suggest using it for every store. Failure to use this command result in your purchase requests not being processed.

Examples

on mouseUp
mobileStoreEnablePurchaseUpdates
mobileStoreSetProductType "com.runrev.sampleapp.nonconsumable" \
, "inapp"
mobileStoreMakePurchase "com.runrev.sampleapp.nonconsumable" \
, "1", "This belongs to me"
end mouseUp
on mouseUp
mobileStoreEnablePurchaseUpdates
mobileStoreRestorePurchases
end mouseUp

command: mobileStoreRestorePurchases, mobileStoreDisablePurchaseUpdates, mobileStoreRequestProductDetails, mobileStoreMakePurchase, mobileStoreSetProductType, mobileStoreConsumePurchase, mobileStoreConfirmPurchase, mobileStoreVerifyPurchase

function: mobileStoreProductProperty, mobileStorePurchasedProducts, mobileStorePurchaseError, mobileStoreCanMakePurchase

message: purchaseStateUpdate, productRequestError, productDetailsReceived

Compatibility and Support

Introduced

LiveCode 6.7

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?